package com.laex;

import java.io.IOException;

import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.ImageItem;

public class POEUtil {

	public static ImageItem getPlusIcon() {
		ImageItem imgItem = null;
		try {
			imgItem = new ImageItem(null, Image
					.createImage("/img/drop-add.png"), ImageItem.LAYOUT_DEFAULT,
					"none");
		} catch (IOException e) {
			e.printStackTrace();
		}
		return imgItem;
	}
	
	public static ImageItem getReportIcon() {
		ImageItem imgItem = null;
		try {
			imgItem = new ImageItem(null, Image
					.createImage("/img/page_word.png"), ImageItem.LAYOUT_DEFAULT,
					"none");
		} catch (IOException e) {
			e.printStackTrace();
		}
		return imgItem;
	}
	
	public static ImageItem getListItemIcon() {
		ImageItem imgItem = null;
		try {
			imgItem = new ImageItem(null, Image
					.createImage("/img/feed.gif"), ImageItem.LAYOUT_DEFAULT,
					"none");
		} catch (IOException e) {
			e.printStackTrace();
		}
		return imgItem;
	}
	
	public static ImageItem getExpenseReportIcon() {
		ImageItem imgItem = null;
		try {
			imgItem = new ImageItem(null, Image
					.createImage("/img/document.gif"), ImageItem.LAYOUT_DEFAULT,
					"none");
		} catch (IOException e) {
			e.printStackTrace();
		}
		return imgItem;
	}
	
	public static ImageItem getDeleteIcon() {
		ImageItem imgItem = null;
		try {
			imgItem = new ImageItem(null, Image
					.createImage("/img/delete.gif"), ImageItem.LAYOUT_DEFAULT,
					"none");
		} catch (IOException e) {
			e.printStackTrace();
		}
		return imgItem;
	}

	public static ImageItem getChartIcon() {
		ImageItem imgItem = null;
		try {
			imgItem = new ImageItem(null, Image
					.createImage("/img/chart.png"), ImageItem.LAYOUT_DEFAULT,
					"none");
		} catch (IOException e) {
			e.printStackTrace();
		}
		return imgItem;
	}

}
